<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
	  xmlns:rich="http://richfaces.org/rich" >

	<ui:composition template="/main-template.xhtml">

	<ui:define name="content">
<h1><h:outputText value="#{msg.label_process}" /></h1>	
<a4j:outputPanel id="listUserProcess" rendered="#{userBean.role != 'admin'}">

			<a4j:form>

				<rich:dataTable value="#{authBean.userLogado.processes}" var="process" columns="5" width="100%" >

					<f:facet name="header">

						<h:outputText value="#{msg.process_table_title}" />

					</f:facet>

					<rich:column>

						<f:facet name="header"><h:outputText value="#{msg.process_name}" /> </f:facet>
						<h:outputText value="#{process.name}" />
					</rich:column>

					<rich:column>

						<f:facet name="header"><h:outputText value="#{msg.process_number}" /></f:facet>

						<h:outputText value="#{process.number}" />

					</rich:column>

					<rich:column>

						<f:facet name="header"><h:outputText value="#{msg.process_solicitation}" /></f:facet>

						<h:outputText value="#{process.solicitation}" />

					</rich:column>
					
					<rich:column>

						<f:facet name="header"><h:outputText value="#{msg.process_part}" /></f:facet>

						<h:outputText value="#{process.user.name}" />

					</rich:column>
					
					<rich:column>

						<f:facet name="header"><h:outputText value="#{msg.process_status}" /></f:facet>

						<h:outputText value="#{process.status}" />

					</rich:column>
					
					
					<f:facet name="footer">

						<h:outputText
							value="" />

					</f:facet>

				</rich:dataTable>


			</a4j:form>
			
	</a4j:outputPanel>
	
	
	
	
	</ui:define>


	</ui:composition>

</html>